package Controller;

import Service.MainService;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Gr-Developer
 */
public class MainController extends BaseController {

    public MainController() {
        super("MainController.properties",
                null,
                null);
    }

    @Override
    protected String verifyPageView(String pageName,
            HttpServletRequest request) throws Exception {
        if (pageName.equals("../Index")) {  // if index. logout
            MainService ms = new MainService();
            ms.doLogout(request);
        }
        return super.verifyPageView(pageName, request);
    }
}
